<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui" xml:lang="en" lang="en">
<h:head>
    <title>Login</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here"/>
    <meta http-equiv="description"
          content="A short description of this page."/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <!--<link rel="stylesheet" type="text/css" href="styles.css">-->
</h:head>
<h:body>
    <ui:composition template="General.xhtml">
        <ui:define name="content">
            <p:outputPanel>
                <h:messages></h:messages>
            </p:outputPanel>
            <h:panelGrid columns="2">
                <f:facet name="header">
                    <h:outputText value="登录"></h:outputText>
                </f:facet>
                <h:outputLabel value="用户名："/>
                <h:inputText value="#{bbsLogin.urn}"/>
                <h:outputLabel value="密码："/>
                <h:inputText value="#{bbsLogin.pwd}"/>
                <h:commandButton value="登录" action="#{bbsLogin.checkUser}"></h:commandButton>
            </h:panelGrid>
        </ui:define>
    </ui:composition>
</h:body>
</html>
